// 首页和登录
import request from '@/utils/request'
// 首页
export const getCourseOnline = params => {
  return request({
    method: 'GET',
    url: 'course/courseOnline',
    params
  })
}
// 首页
export const getCourseUser = params => {
  return request({
    method: 'GET',
    url: 'course/courseUser',
    params
  })
}
export const getCourseFrequencyDistribution = params => {
  return request({
    method: 'GET',
    url: 'course/courseFrequencyDistribution',
    params
  })
}
export const getCourseBuy = params => {
  return request({
    method: 'GET',
    url: 'course/courseBuy',
    params
    // buyNum
  })
}

export const getCourseVisit = params => {
  return request({
    method: 'GET',
    url: 'course/courseVisit',
    params
    // visitNum
  })
}
